]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Return false from the timeout callback function
authorMarina Zhurakhinskaya <marinaz@redhat.com>
Fri, 24 Jul 2009 16:58:53 +0000 (12:58 -0400)
committerMarina Zhurakhinskaya <marinaz@redhat.com>
Fri, 24 Jul 2009 16:58:53 +0000 (12:58 -0400)
Timeout callback function should not be rescheduled again with the same timeout
because we compute a new timeout and schedule it again instead. So the callback
function needs to return false to not be scheduled again by default.

js/ui/docDisplay.js

index c507e67b5e36e433ca6f8a5379c2f8e978424475..3027936d97f27fb6a9625c546c01488dfd504e9c 100644 (file)
@@ -224,7 +224,7 @@ DocDisplay.prototype = {
             docDisplayItem.redisplay(currentSecs);          
             this._updateTimeoutCallback(docDisplayItem, currentSecs);
         }
-        return true;
+        return false;
     },
 
     // Updates the timeout callback if the timeout time for the docDisplayItem